package com.hzvtc.myproject.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
public class Room {
    private Long id; // 宿舍房间ID

    @NotBlank
    private String number; // 房间号

    @NotNull
    private Long buildingId; // 所属楼栋ID

    @NotNull
    private Integer maxCapacity; // 最大容纳人数

    private Integer currentNum; // 当前人数

    private Building building; // 所属楼栋对象

    private Boolean isFull; // 是否已满
}
